﻿using Nova_Common.Extend;
using Nova_DAL;
using Nova_MOD;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Nova_BLL
{
    public class TLCDTaskBll
    {
        private readonly TLCDTaskDal dal = new TLCDTaskDal();

        public TLCDTask GetBySQID(string SqId)
        {
            return dal.GetById(SqId);
        }

        public bool UpdateEntity(TLCDTask entity)
        {
            return dal.Update(entity);
        }

        public bool InsertEntity(TLCDTask entity)
        {
            string id = dal.Insert(entity);
            return !id.IsEmpty();
        }
    }
}
